<?php

/**
 * report actions.
 *
 * @package    rbis
 * @subpackage report
 * @author     Norú Moreno, Fahmi Machda
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class reportActions extends sfActions
{
 /**
  * Executes generate action
  *
  * @param sfRequest $request A request object
  */
  public function executeGenerate(sfWebRequest $request)
  {
    $this->userId = $this->getUser()->getAttribute('id');
    /*
    if (!$speciesList = $request->getParameter('speciesList'))
    {
        echo "No species...";
    }else{
        //@rbis.todo generate real statistics from this list
        echo $speciesList;
        //Just for test
        echo "Selected Species: <br />";
        foreach ($speciesList as $species){
            echo $species.",";
        }
    }
     * 
     */
  }

  public function executeStatistics(){
    $userId = $this->getUser()->getAttribute('id');
    $this->filename = 'assets/tmp/'.$userId.'.xml';
  }
}
